package study.nosql.mongodb.dao.item;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import study.nosql.mongodb.dao.BaseDoc;

@Document(collection = "item")
@Data
public class ItemDoc extends BaseDoc {

    @Field("subject_id")
    private Integer subjectId;
    @Field
    private Double sourceType;
    @Field
    private Integer review;
    @Field
    private Long ctime;
    @Field
    private Long mtime;
    @Field
    private Integer edu;
    @Field("has_score")
    private Boolean hasScore;
    @Field
    private Integer difficulty;
    @Field
    private String data;
}
